package com.znow.admin.system.security.model.res;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 权限dto
 *
 * @author Administrator
 * @date 2022/10/26
 */
@Data
public class PermissionRequest implements Serializable {

    private Long id;

    /**
     * 权限名称
     */
    @NotNull
    private String permissionName;

    /**
     * 权限类型
     */
    @NotNull
    private Integer permissionType;

    /**
     * 权限码
     */
    @NotNull
    private String permissionCode;

    /**
     * 图标
     */
    private String permissionIcon;

    /**
     * url
     */
    private String url;

    /**
     * 父类ID
     */
    @NotNull
    private Long parentId;

    private Integer permissionSort;
}
